﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OF.Component.BLL;
using OF.Component.Model;
using OF.Component.Base;
using OF.Utility;

namespace OpSystem.manage.ajax
{
    public partial class AjaxDelCom : OpBasePage
    {
        private string strGuid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] strFIDAll = FID.Split('|');
            foreach (string strID in strFIDAll)
            {
                //需要改变的客户信息
                AssemblyUtil.TestMethodStatic("Delete", strID, TypeClassName);
            }

            //if (strGuid != "")
            //{
            //    OF.Common.BaseOperationLog.Insert_OperationLog(strGuid, OpUserInfo.OpUserID, OpUserInfo.OpUserName, "删除");
            //}
        }

        /// <summary>
        /// ID
        /// </summary>
        private string FID
        {
            get
            {
                if (!string.IsNullOrEmpty(Request.Params["idall"]))
                {
                    return Convert.ToString(Request.Params["idall"]);
                }
                else
                {
                    return "";
                }
            }
        }

        /// <summary>
        /// 操作类别
        /// </summary>
        private string TypeClassName
        {
            get
            {
                if (!string.IsNullOrEmpty(Request.Params["ty"]))
                {
                    return Convert.ToString(Request.Params["ty"]);
                }
                else
                {
                    return "";
                }
            }
        }
    }
}